{extend name='public/modal'}
{block name='content'}
<style type="text/css">
    .submit_btn{
        float: center;
    }
    .domeImg{width: 50%;margin-left: 20%;}
</style>
<form action="update_banner" class="layui-form layui-form-pane" id="mainForm" method="post" enctype="multipart/form-data">

    <form class="form-horizontal" id='addForm' action="update_banner" enctype="multipart/form-data">
        <input type="hidden" name='id' value="{$data.id}">
        <div class="layui-upload">
            <div class="layui-upload-list">
                <img class="layui-upload-img domeImg" src='{$data.headimgurl}'>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">
                昵称
            </label>
            <div class="layui-input-block">
                <input type="text" name="url" readonly="readonly"  class="layui-input" id="url" placeholder="格式：http://www.xxxx.com" value="{$data.nickname}">
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">
                真实姓名
            </label>
            <div class="layui-input-block">
                <input type="text" name="describe" readonly="readonly" class="layui-input" id="describe" placeholder="真实姓名" value="{$data.name}">
            </div>
        </div>


        <div class="layui-form-item">
            <label class="layui-form-label">
               手机
            </label>
            <div class="layui-input-block">
                <input type="text" name="describe" readonly="readonly" class="layui-input" placeholder="手机" value="{$data.phone}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">
                邮箱
            </label>
            <div class="layui-input-block">
                <input type="text" name="describe" readonly="readonly" class="layui-input" placeholder="邮箱" value="{$data.email}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">
                地址
            </label>
            <div class="layui-input-block">
                <input type="text" name="describe" readonly="readonly" class="layui-input" placeholder="邮箱" value="{$data.address}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">
                来源
            </label>
            <div class="layui-input-block">
                {if condition="$data.usertype eq 0"}
                <input type="text" name="describe" readonly="readonly" class="layui-input" placeholder="来源" value="网站注册">
                {elseif condition="$data.usertype eq 1"/}
                <input type="text" name="describe" readonly="readonly" class="layui-input" placeholder="来源" value="微信注册">
                {else/}
                <input type="text" name="describe" readonly="readonly" class="layui-input" placeholder="来源" value="QQ注册">
                {/if}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">
                登录时间
            </label>
            <div class="layui-input-block">
                <input type="text" name="describe" readonly="readonly" class="layui-input" placeholder="最后登录时间" value="{$data.datetime}">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">
                登录次数
            </label>
            <div class="layui-input-block">
                <input type="text" name="describe" readonly="readonly" class="layui-input" placeholder="登录次数" value="{$data.loginnum}">
            </div>
        </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block submit_btn">
                <input id="addReset" type="reset" style="display: none" value="这个是Form清除" />
            </div>
        </div>
    </form>
    {/block}
    {block name='js'}
    {/block}
